# matrix vector doc product example.
import numpy as np

m1 = np.array( [
        [0.00, 0.01, 0.02, 0.03],
        [0.04, 0.05, 0.06, 0.07],
        [0.08, 0.09, 0.10, 0.11],
        [0.12, 0.13, 0.14, 0.15],
        [0.16, 0.17, 0.18, 0.19]
    ] )

m2 = np.array( [
        [ 0.00,  0.01,  0.02,  0.03],
        [-0.04, -0.05, -0.06, -0.07],
        [ 0.08,  0.09,  0.10,  0.11],
        [-0.12, -0.13, -0.14, -0.15],
        [ 0.16,  0.17,  0.18,  0.19]
    ] )

m_vec_dot_prod = np.sum(m1*m2)

print('vec(m1).vec(m2) =', m_vec_dot_prod)
print('done.')